﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

	<head>
        <meta charset="UTF-8">
        <title>Security</title>

        <link rel="stylesheet" href="../static/plugins/layui/css/layui.css" media="all" th:href="@{plugins/layui/css/layui.css}"/>
        <link rel="stylesheet" href="../static/css/global.css" media="all" th:href="@{css/global.css}">
        <link rel="stylesheet" href="../static/plugins/font-awesome/css/font-awesome.min.css" th:href="@{plugins/font-awesome/css/font-awesome.min.css}">
        <link rel="stylesheet" href="../static/css/table.css" th:href="@{css/table.css}"/>
        <!--<link rel="stylesheet" href="../static/css/btable.css" th:href="@{css/btable.css}"/>-->

        <style type="text/css">
            .layui-form input[type=checkbox],.layui-form input[type=radio],.layui-form select
            {
                display: inline;
            }
        </style>
	</head>




    <fieldset class="layui-elem-field">
        <legend>资源列表</legend>

	 <table class="layui-table admin-table">
		 <tr>
		 <th>序号</th>
		 <th>id</th>
		 <th>名称</th>
		 <th>指向</th>
		 <th>操作</th>
		 </tr>
		 <!--/*@thymesVar id="bean" type="com.example.demo.security.bean.SecurityResourceBean"*/-->
		 <tr th:each="bean,beanStat:${resourcelist}" th:object="${bean}">
			 <td th:text="${beanStat.count}"></td>
			 <td th:text="${bean.id}"></td>
             <td th:text="${bean.resourceName}"></td>
             <td th:text="${bean.resourceUrl}"></td>
             <td>
                 <a th:href="ff">删除</a>
             </td>
		 </tr>
	 </table>
    </fieldset>

    <fieldset class="layui-elem-field">
    <legend>角色列表</legend>
        <div class="layui-field-box layui-form">

	 <table class="layui-table admin-table">
         <tr>
             <th>序号</th>
             <th>id</th>
             <th>名称</th>
             <th>角色名称</th>
             <th>操作</th>
         </tr>
         <!--{delid}(delid=*{id})-->
		 <!--/*@thymesVar id="bean" type="com.example.demo.security.bean.SecurityRoleBean"*/-->
		 <tr th:each="bean,beanStat:${rolelist}"  th:object="${bean}">
			 <td th:text="${beanStat.count}"></td>
			 <td th:text="${bean.id}"></td>
			 <td >
                 <a th:text="*{nickName}" th:href="@{showrole/{id}(id=*{id})}"></a>
             </td>
			 <td th:text="${bean.roleName}"></td>
			 <td>
                 <a th:href="ff">删除</a>
			 </td>
		 </tr>
	 </table>
        </div>
    </fieldset>




    <!--<fieldset class="layui-elem-field">-->
    <!--<legend>添加</legend>-->

    <!--&lt;!&ndash;/*@thymesVar id="entity" type="com.example.demo.navigation.bean.NavBean"*/&ndash;&gt;-->
	  <!--<form class="layui-form" th:action="@{/addNav}" method="post" th:object="${entity}">-->
          <!--<div class="layui-form-item">-->
              <!--<div class="layui-inline">-->
               <!--<label class="layui-form-label">名称</label>-->
              <!--<div class="layui-input-inline">-->
                  <!--<input placeholder="名称" type="text" th:field="*{title}" th:errorclass="fieldError" class="layui-input"/>-->
              <!--</div>-->
              <!--</div>-->
              <!--<div class="layui-inline">-->

              <!--<label class="layui-form-label">指向</label>-->
              <!--<div class="layui-input-inline">-->
                  <!--<input placeholder="指向"type="text"  th:field="*{href}" th:errorclass="fieldError" class="layui-input"/>-->
              <!--</div>-->
              <!--</div>-->

              <!--<div class="layui-inline">-->

                  <!--<label class="layui-form-label">类型</label>-->
                  <!--<div class="layui-form-select">-->
                      <!--&lt;!&ndash;<input placeholder="类型" type="text" th:field="*{type}" th:errorclass="fieldError" class="layui-input"/>&ndash;&gt;-->
                    <!--<select  th:field="*{type}">-->
                        <!--<option value="0">一级菜单</option>-->
                        <!--<option value="1">二级菜单</option>-->
                        <!--<option value="2">三级菜单</option>-->
                    <!--</select>-->
                  <!--</div>-->
              <!--</div>-->
              <!--<div class="layui-inline">-->

                  <!--<label class="layui-form-label">父类</label>-->
                  <!--<div class="layui-input-inline">-->
                      <!--<input placeholder="父类" type="text" th:field="*{parentId}" th:errorclass="fieldError" class="layui-input"/>-->
                  <!--</div>-->
              <!--</div>-->

              <!--<div class="layui-inline">-->

                  <!--<label class="layui-form-label">排序</label>-->
                  <!--<div class="layui-input-inline">-->
                      <!--<input placeholder="序号" type="text" th:field="*{sort}" th:errorclass="fieldError" class="layui-input"/>-->
                  <!--</div>-->
              <!--</div>-->

              <!--<input class="layui-btn" type="submit" value="提交"/>-->


          <!--</div>-->


      <!--</form>-->

    <!--</fieldset>-->


	</body>




</html>